﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Text;
using System.Windows.Forms;
using Spire.Spreadsheet.Forms.Utility;

namespace Spire.Spreadsheet.Sample.Case
{
    public partial class Formula : Form
    {
        [STAThread]
        static void Main()
        {
            Application.Run(new Formula());
        }
        public string FileName {get;set;}
        public Formula()
        {
            InitializeComponent();
        }
        private void Formula_Load(object sender, EventArgs e)
        {
            OpenFile(Path.Combine(@"../../../../../../DATA/", "Formula.xls"));
            
        }
        private void OpenFile(string fileName)
        {
            if (fileName != null)
                spreadsheet1.LoadFromFile(fileName);
        }

    }
}
